import numpy as np


import matplotlib.pyplot as plt
# 生成数据
x = np.arange(0,2*np.pi,0.1)
y1 = np.sin(x)
y2 = np.cos(x)
# 绘制图形
plt.plot(x,y1)
plt.plot(x,y2)
plt.show()